import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
// import StepOne from '@/views/step/StepOne.vue'
// import StepTwo from '@/views/step/StepTwo.vue'
// import StepThree from '@/views/step/StepThree.vue'
// import ft from '@/views/ft/index.vue'
// import hq from '@/views/hq/index.vue'
// import my from '@/views/my/index.vue'
// import ky from '@/views/ky/index.vue'
// import sb from '@/views/sb/index.vue'
// import ss from '@/views/ss/index.vue'
// import fx from '@/views/fx/index.vue'

Vue.use(VueRouter)

const routes = [{
    path: '/',
    name: 'Home',
    redirect: '/dashboard/main',
    component: Home,
    children: [{
        path: '/dashboard/main',
        name: 'StepOne',
        component: ()=>import('@/views/step/StepOne.vue')
      },
      {
        path: '/dashboard/step-two',
        name: 'StepTwo',
        component: ()=>import('@/views/step/StepTwo.vue')
      },
      {
        path: '/dashboard/step-three',
        name: 'StepThree',
        component: ()=>import('@/views/step/StepThree.vue')
      },
      {
        path: '/dashboard/ft',
        name: 'Ft',
        component: ()=>import('@/views/ft/index.vue')
      },

      {
        path: '/dashboard/hq',
        name: 'Hq',
        component: ()=>import('@/views/hq/index.vue')
      },
      {
        path: '/dashboard/my',
        name: 'My',
        component: ()=>import('@/views/my/index.vue')
      },
      {
        path: '/dashboard/ky',
        name: 'Ky',
        component: ()=>import('@/views/ky/index.vue')
      },


      {
        path: '/dashboard/sb',
        name: 'Sb',
        component:()=>import('@/views/sb/index.vue')
      },
      {

        path: '/dashboard/ss',
        name: 'Ss',
        component: ()=>import('@/views/ss/index.vue')
      },
      {

        path: '/dashboard/fx',
        name: 'Fx',
        component: ()=>import('@/views/fx/index.vue')
      },


    ]
  },

]

const router = new VueRouter({
  mode: 'history',
  base: process.env.VUE_APP_BASE_API,
  routes
})

export default router